package com.andon.springboot.seed.param;

import org.hibernate.validator.constraints.Length;

import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: baiwenlong
 * created on: 2018/11/15 4:28 PM
 * description: 部门参数
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class DeptParam {

    private Integer id;

    @NotBlank(message = "部门名称不能为空")
    @Length(min = 2, max = 15, message = "部门名称需要在2-15个字符之间")
    private String deptName;

    private Integer parentId;

    @NotNull(message = "展示顺序不能为空")
    private Integer seq;

    @NotBlank(message = "备注不能为空")
    @Length(max = 150, message = "备注需要在150个字以内")
    private String remark;

    @NotBlank(message = "操作者不能为空")
    private String operator;


    private String operateIp;

}
